
package homeWork5;

public class a4 {

	public static void main(String[] args) {
		for (int a = -100; a < 10000000; a++) {
			int j = (int) Math.sqrt(a + 100);
			int k = (int) Math.sqrt(a + 268);
			if (((a + 100) == j * j) && ((a + 268) == k * k) && a > 0) {
				System.out.println("" + a);
			}
		}

	}
}